<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<div style="width: 800px;" align="center">



		<fieldset style="min-height: 500px;">

			<%
				if (request.getAttribute("error") != null) {
			%>
			<ul style="color: red;"><%=request.getAttribute("error")%> </ul>
			<%
				}
			%>
			<legend style="color: graytext; font-weight: bold;">User
				Profiles Registration</legend>
			<br />
			<div align="center">
				<form action="RegisterServlet" method="post">
					<table>
						<tr>
							<td>First Name:</td>
							<td><input type="text" name="firstName" value='<%=request.getAttribute("firstName")!=null ?request.getAttribute("firstName"):"" %>' size="20px" /><span
								style="color: red;">*</span></td>
						</tr>
						<tr>
							<td>Last Name:</td>
							<td><input type="text" name="lastName" value='<%=request.getAttribute("lastName")!=null ?request.getAttribute("lastName"):"" %>' size="20px" /><span
								style="color: red;">*</span></td>
						</tr>
						<tr>
							<td>Username:</td>
							<td><input type="text" name="userName" value='<%=request.getAttribute("userName")!=null ?request.getAttribute("userName"):"" %>' size="20px" /><span
								style="color: red;">*</span></td>
						</tr>
						<tr>
							<td>Email Address:</td>
							<td><input type="text" name="email" value='<%=request.getAttribute("email")!=null ?request.getAttribute("email"):"" %>' size="40px" /><span
								style="color: red;">*</span></td>
						</tr>
						<tr>
							<td>Password:</td>
							<td><input type="password" name="password" value=""
								size="30px" /><span style="color: red;">*</span></td>
						</tr>
						<tr>
							<td>Confirm Password:</td>
							<td><input type="password" name="confirmPassword" value=""
								size="30px" /></td>
						</tr>

						<tr>
							<td>Cellphone:</td>
							<td><input type="text" name="cellphone" value='<%=request.getAttribute("cellphone")!=null ?request.getAttribute("cellphone"):"" %>' size="30px" />
							</td>
						</tr>
						<tr align="center">
							<td colspan="2"><br />
							<br />
							<input type="submit" value="Register" /><input type="button"
								value="Cancel" /><br /></td>
						</tr>
					</table>
				</form>
			</div>
		</fieldset>
	</div>
</body>
</html>